﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.XtraEditors;
using System.ComponentModel;

namespace XtraTaskDialogDemo
{
    public class HtmlSimpleButton : SimpleButton
    {
        bool _AllowHtmlText;
        [Description("Gets or sets whether html text is allowed in the button text."), Category(CategoryName.Properties)]
        [DefaultValue(false), RefreshProperties(RefreshProperties.All)]
        public bool AutoWidthInLayoutControl
        {
            get { return _AllowHtmlText; }
            set
            {
                if (_AllowHtmlText == value) return;
                _AllowHtmlText = value;
                OnPropertiesChanged();
            }
        }

        protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
        {
            base.OnPaint(e);
        }
    }
}
